import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/home/index.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    children: [
      {
        path: 'message',
        component: () => import('@/views/message/index.vue'),
        children: [
          {
            path: '1',
            component: () => import('@/views/message/message1')
          },
          {
            path: '2',
            component: () => import('@/views/message/message2')
          },
          {
            path: '3',
            component: () => import('@/views/message/message3')
          }
        ]
      },
      {
        path: 'binding',
        component: () => import('@/views/binding/index.vue')
      },
      {
        path: 'uclubcard',
        component: () => import('@/views/uclubcard/index.vue')
      },
      {
        path: 'level',
        component: () => import('@/views/level/index.vue')
      },
      {
        path: 'gold_log',
        component: () => import('@/views/goldlog/index.vue')
      }

    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
